﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminLogin.aspx.cs" Inherits="TravelLink.WebApp.Admin.AdminLogin" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 940px;
        }
        .style2
        {
            width: 300px;
        }
        .style3
        {
            width: 300px;
            height: 200px;
        }
        </style>

</head>
<body style="text-align: center;">
    <form id="form1" runat="server">
    <script type="text/javascript">
function CallServer()
{
if(atbusercode.GetText().indexOf(',')>-1)
{
alert('非法字符');
return;
}
if(atbpassword.GetText().indexOf(',')>-1)
{
alert('非法字符');
return;
}
var rowid = atbusercode.GetText()+','+atbpassword.GetText();
<%= ClientScript.GetCallbackEventReference(this, "rowid", "ReceiveServerData",null)%>;
}
 
function ReceiveServerData(rValue)
{
    if(rValue=='')
    {
    self.location='admindefault.aspx';
    }
    else
    {
    alert(rValue);
    }
}
 </script>
    <div id="main">
        <table align="center" class="style1" style="background-color: #FFFFFF">
         <tr>
                <td height="50px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="background-image: url('/img/logo.jpg'); height: 79px; background-repeat: no-repeat;">
                    </td>
            </tr>
            <tr>
                <td height="100px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <table class="style3">
                        <tr>
                            <td>
                                <table align="center" class="style2">
                        <tr>
                            <td style="text-align: left">
                                <asp:Label ID="Label1" runat="server" Text="用户名" style="text-align: left"></asp:Label>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="atbusercode" runat="server" 
                                    ClientInstanceName="atbusercode" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left">
                                <asp:Label ID="Label2" runat="server" Text="密码"></asp:Label>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="atbpassword" runat="server" 
                                    ClientInstanceName="atbpassword" Password="True" Width="170px">
                                </dx:ASPxTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <dx:ASPxButton ID="ASPxButton1" runat="server" Text="登录" AutoPostBack="False" 
                                    Width="120px">
                                    <clientsideevents click="function(s, e) {
	CallServer();
}" />
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table></td>
                        </tr>
                    </table>
&nbsp;
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
